home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000397_fdc@columbia.edu_Fri Nov 7 10:20:39 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Problem with Kermit spawned from Expect script sending files
  5. Date: 7 Nov 2003 14:36:38 GMT
  6. Organization: Columbia University
  7. Lines: 21
  8. Message-ID: <slrnbqnbfm.380.fdc@sesame.cc.columbia.edu>
  9. References: <f0bb0f39.0311061216.1ba040a0@posting.google.com> <slrnbqlcid.ooo.fdc@sesame.cc.columbia.edu> <f0bb0f39.0311070527.6ce76ffc@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1068215798 18182 128.59.59.56 (7 Nov 2003 14:36:38 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 7 Nov 2003 14:36:38 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14652
  17.  
  18. In article <f0bb0f39.0311070527.6ce76ffc@posting.google.com>,
  19. newexpectuser wrote:
  20. : I looked at the article and have tried this simple connection:
  21. :   #!/usr/bin/kermit +
  22. :   echo "Starting"
  23. :   set host /pipe ssh -e none -l /user:root 111.111.11.111
  24. :   lineout "mypassword"
  25. :   echo "Connected"
  26. :   quit
  27. : With this above it does connect, but still waits for me to enter a
  28. : password, I thought the lineout would do this for me, that is why I
  29. : had mentioned EXPECT earlier, it can pass this value via the "send"
  30. : command in EXPECT.
  31. What if you use "set host /pty" instead of "set host /pipe"?  Expect uses
  32. ptys, so if you tell Kermit to use a pty, it should work like Expect.
  33.  
  34. - Frank
  35.